package com.supergzt.service;



import com.supergzt.entity.base.LoginUser;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 张钧
 * @Description
 * @create 2022-10-20 15:24
 */
public interface TokenService {
	String createToken(LoginUser userInfo);
	LoginUser getLoginUser(HttpServletRequest request);

	void refreshToken(LoginUser loginUser);

	LoginUser getLoginUser(String token);

	void setLoginUser(LoginUser loginUser);

	void deleteLoginUser(String token);

	void verifyToken(LoginUser loginUser);

	void logout(HttpServletRequest request);

	void forceLogout(Long userId);
}
